package org.jeecg.modules.basedata.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.util.StringUtils;
import org.jeecg.entity.basedata.BaseFloor;
import org.jeecg.entity.basedata.BaseFloorInfo;
import org.jeecg.vo.basedata.BaseFloorPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 楼宇
 * @Author: jeecg-boot
 * @Date:   2019-07-02
 * @Version: V1.0
 */
public interface IBaseFloorService extends IService<BaseFloor> {

	public Page<BaseFloorPage> getBaseFloorList(Page<BaseFloorPage> page, Wrapper<BaseFloorPage> wrapper);

	public BaseFloorPage selectByMainId(String mainId);

	List<BaseFloor> queryFloorList(String projectId);
	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(BaseFloor baseFloor, BaseFloorInfo baseFloorInfo) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(BaseFloor baseFloor, BaseFloorInfo baseFloorInfo);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	/**
	 * 模糊查询
	 * @param page
	 * @param map
	 * @return
	 */
	public Page<BaseFloorPage> listByParams(Page<BaseFloorPage> page,BaseFloorPage baseFloor);

	public Integer getRoomCount(String id);

	public Integer getRoomCounts(String[] ids);

	BaseFloor queryFloorName(String projectId, String floorId);

    String queryProjectName(String projectId);

    BaseFloor getByProjectIdName(String projectId, String name);
}
